3.1.45 \(\int \csc ^2(a+b x) \sin ^8(2 a+2 b x) \, dx\) [45]

Optimal. Leaf size=155 \[ \frac {5 x}{8}+\frac {5 \cos (a+b x) \sin (a+b x)}{8 b}+\frac {5 \cos ^3(a+b x) \sin (a+b x)}{12 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{3 b}+\frac {2 \cos ^7(a+b x) \sin (a+b x)}{7 b}-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b} \]

[Out]

5/8*x+5/8*cos(b*x+a)*sin(b*x+a)/b+5/12*cos(b*x+a)^3*sin(b*x+a)/b+1/3*cos(b*x+a)^5*sin(b*x+a)/b+2/7*cos(b*x+a)^
7*sin(b*x+a)/b-16/7*cos(b*x+a)^9*sin(b*x+a)/b-160/21*cos(b*x+a)^9*sin(b*x+a)^3/b-128/7*cos(b*x+a)^9*sin(b*x+a)
^5/b

________________________________________________________________________________________

Rubi [A]
time = 0.13, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4373, 2648, 2715, 8} \begin {gather*} -\frac {128 \sin ^5(a+b x) \cos ^9(a+b x)}{7 b}-\frac {160 \sin ^3(a+b x) \cos ^9(a+b x)}{21 b}-\frac {16 \sin (a+b x) \cos ^9(a+b x)}{7 b}+\frac {2 \sin (a+b x) \cos ^7(a+b x)}{7 b}+\frac {\sin (a+b x) \cos ^5(a+b x)}{3 b}+\frac {5 \sin (a+b x) \cos ^3(a+b x)}{12 b}+\frac {5 \sin (a+b x) \cos (a+b x)}{8 b}+\frac {5 x}{8} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Csc[a + b*x]^2*Sin[2*a + 2*b*x]^8,x]

[Out]

(5*x)/8 + (5*Cos[a + b*x]*Sin[a + b*x])/(8*b) + (5*Cos[a + b*x]^3*Sin[a + b*x])/(12*b) + (Cos[a + b*x]^5*Sin[a
 + b*x])/(3*b) + (2*Cos[a + b*x]^7*Sin[a + b*x])/(7*b) - (16*Cos[a + b*x]^9*Sin[a + b*x])/(7*b) - (160*Cos[a +
 b*x]^9*Sin[a + b*x]^3)/(21*b) - (128*Cos[a + b*x]^9*Sin[a + b*x]^5)/(7*b)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2648

Int[(cos[(e_.) + (f_.)*(x_)]*(b_.))^(n_)*((a_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(-a)*(b*Cos[e
 + f*x])^(n + 1)*((a*Sin[e + f*x])^(m - 1)/(b*f*(m + n))), x] + Dist[a^2*((m - 1)/(m + n)), Int[(b*Cos[e + f*x
])^n*(a*Sin[e + f*x])^(m - 2), x], x] /; FreeQ[{a, b, e, f, n}, x] && GtQ[m, 1] && NeQ[m + n, 0] && IntegersQ[
2*m, 2*n]

Rule 2715

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d*x]*((b*Sin[c + d*x])^(n - 1)/(d*n))
, x] + Dist[b^2*((n - 1)/n), Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integ
erQ[2*n]

Rule 4373

Int[((f_.)*sin[(a_.) + (b_.)*(x_)])^(n_.)*sin[(c_.) + (d_.)*(x_)]^(p_.), x_Symbol] :> Dist[2^p/f^p, Int[Cos[a
+ b*x]^p*(f*Sin[a + b*x])^(n + p), x], x] /; FreeQ[{a, b, c, d, f, n}, x] && EqQ[b*c - a*d, 0] && EqQ[d/b, 2]
&& IntegerQ[p]

Rubi steps

\begin {align*} \int \csc ^2(a+b x) \sin ^8(2 a+2 b x) \, dx &=256 \int \cos ^8(a+b x) \sin ^6(a+b x) \, dx\\ &=-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+\frac {640}{7} \int \cos ^8(a+b x) \sin ^4(a+b x) \, dx\\ &=-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+\frac {160}{7} \int \cos ^8(a+b x) \sin ^2(a+b x) \, dx\\ &=-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+\frac {16}{7} \int \cos ^8(a+b x) \, dx\\ &=\frac {2 \cos ^7(a+b x) \sin (a+b x)}{7 b}-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+2 \int \cos ^6(a+b x) \, dx\\ &=\frac {\cos ^5(a+b x) \sin (a+b x)}{3 b}+\frac {2 \cos ^7(a+b x) \sin (a+b x)}{7 b}-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+\frac {5}{3} \int \cos ^4(a+b x) \, dx\\ &=\frac {5 \cos ^3(a+b x) \sin (a+b x)}{12 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{3 b}+\frac {2 \cos ^7(a+b x) \sin (a+b x)}{7 b}-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+\frac {5}{4} \int \cos ^2(a+b x) \, dx\\ &=\frac {5 \cos (a+b x) \sin (a+b x)}{8 b}+\frac {5 \cos ^3(a+b x) \sin (a+b x)}{12 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{3 b}+\frac {2 \cos ^7(a+b x) \sin (a+b x)}{7 b}-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}+\frac {5 \int 1 \, dx}{8}\\ &=\frac {5 x}{8}+\frac {5 \cos (a+b x) \sin (a+b x)}{8 b}+\frac {5 \cos ^3(a+b x) \sin (a+b x)}{12 b}+\frac {\cos ^5(a+b x) \sin (a+b x)}{3 b}+\frac {2 \cos ^7(a+b x) \sin (a+b x)}{7 b}-\frac {16 \cos ^9(a+b x) \sin (a+b x)}{7 b}-\frac {160 \cos ^9(a+b x) \sin ^3(a+b x)}{21 b}-\frac {128 \cos ^9(a+b x) \sin ^5(a+b x)}{7 b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.27, size = 85, normalized size = 0.55 \begin {gather*} \frac {840 a+840 b x+105 \sin (2 (a+b x))-315 \sin (4 (a+b x))-63 \sin (6 (a+b x))+63 \sin (8 (a+b x))+21 \sin (10 (a+b x))-7 \sin (12 (a+b x))-3 \sin (14 (a+b x))}{1344 b} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Csc[a + b*x]^2*Sin[2*a + 2*b*x]^8,x]

[Out]

(840*a + 840*b*x + 105*Sin[2*(a + b*x)] - 315*Sin[4*(a + b*x)] - 63*Sin[6*(a + b*x)] + 63*Sin[8*(a + b*x)] + 2
1*Sin[10*(a + b*x)] - 7*Sin[12*(a + b*x)] - 3*Sin[14*(a + b*x)])/(1344*b)

________________________________________________________________________________________

Maple [A]
time = 0.12, size = 111, normalized size = 0.72

method result size
risch \(\frac {5 x}{8}-\frac {\sin \left (14 x b +14 a \right )}{448 b}-\frac {\sin \left (12 x b +12 a \right )}{192 b}+\frac {\sin \left (10 x b +10 a \right )}{64 b}+\frac {3 \sin \left (8 x b +8 a \right )}{64 b}-\frac {3 \sin \left (6 x b +6 a \right )}{64 b}-\frac {15 \sin \left (4 x b +4 a \right )}{64 b}+\frac {5 \sin \left (2 x b +2 a \right )}{64 b}\) \(103\)
default \(\frac {-\frac {128 \left (\sin ^{5}\left (x b +a \right )\right ) \left (\cos ^{9}\left (x b +a \right )\right )}{7}-\frac {160 \left (\sin ^{3}\left (x b +a \right )\right ) \left (\cos ^{9}\left (x b +a \right )\right )}{21}-\frac {16 \sin \left (x b +a \right ) \left (\cos ^{9}\left (x b +a \right )\right )}{7}+\frac {2 \left (\cos ^{7}\left (x b +a \right )+\frac {7 \left (\cos ^{5}\left (x b +a \right )\right )}{6}+\frac {35 \left (\cos ^{3}\left (x b +a \right )\right )}{24}+\frac {35 \cos \left (x b +a \right )}{16}\right ) \sin \left (x b +a \right )}{7}+\frac {5 x b}{8}+\frac {5 a}{8}}{b}\) \(111\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(b*x+a)^2*sin(2*b*x+2*a)^8,x,method=_RETURNVERBOSE)

[Out]

256/b*(-1/14*sin(b*x+a)^5*cos(b*x+a)^9-5/168*sin(b*x+a)^3*cos(b*x+a)^9-1/112*sin(b*x+a)*cos(b*x+a)^9+1/896*(co
s(b*x+a)^7+7/6*cos(b*x+a)^5+35/24*cos(b*x+a)^3+35/16*cos(b*x+a))*sin(b*x+a)+5/2048*x*b+5/2048*a)

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 87, normalized size = 0.56 \begin {gather*} \frac {840 \, b x - 3 \, \sin \left (14 \, b x + 14 \, a\right ) - 7 \, \sin \left (12 \, b x + 12 \, a\right ) + 21 \, \sin \left (10 \, b x + 10 \, a\right ) + 63 \, \sin \left (8 \, b x + 8 \, a\right ) - 63 \, \sin \left (6 \, b x + 6 \, a\right ) - 315 \, \sin \left (4 \, b x + 4 \, a\right ) + 105 \, \sin \left (2 \, b x + 2 \, a\right )}{1344 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)^2*sin(2*b*x+2*a)^8,x, algorithm="maxima")

[Out]

1/1344*(840*b*x - 3*sin(14*b*x + 14*a) - 7*sin(12*b*x + 12*a) + 21*sin(10*b*x + 10*a) + 63*sin(8*b*x + 8*a) -
63*sin(6*b*x + 6*a) - 315*sin(4*b*x + 4*a) + 105*sin(2*b*x + 2*a))/b

________________________________________________________________________________________

Fricas [A]
time = 3.40, size = 87, normalized size = 0.56 \begin {gather*} \frac {105 \, b x - {\left (3072 \, \cos \left (b x + a\right )^{13} - 7424 \, \cos \left (b x + a\right )^{11} + 4736 \, \cos \left (b x + a\right )^{9} - 48 \, \cos \left (b x + a\right )^{7} - 56 \, \cos \left (b x + a\right )^{5} - 70 \, \cos \left (b x + a\right )^{3} - 105 \, \cos \left (b x + a\right )\right )} \sin \left (b x + a\right )}{168 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)^2*sin(2*b*x+2*a)^8,x, algorithm="fricas")

[Out]

1/168*(105*b*x - (3072*cos(b*x + a)^13 - 7424*cos(b*x + a)^11 + 4736*cos(b*x + a)^9 - 48*cos(b*x + a)^7 - 56*c
os(b*x + a)^5 - 70*cos(b*x + a)^3 - 105*cos(b*x + a))*sin(b*x + a))/b

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)**2*sin(2*b*x+2*a)**8,x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 4368 deep

________________________________________________________________________________________

Giac [A]
time = 0.42, size = 95, normalized size = 0.61 \begin {gather*} \frac {105 \, b x + 105 \, a + \frac {105 \, \tan \left (b x + a\right )^{13} + 700 \, \tan \left (b x + a\right )^{11} + 1981 \, \tan \left (b x + a\right )^{9} + 3072 \, \tan \left (b x + a\right )^{7} - 1981 \, \tan \left (b x + a\right )^{5} - 700 \, \tan \left (b x + a\right )^{3} - 105 \, \tan \left (b x + a\right )}{{\left (\tan \left (b x + a\right )^{2} + 1\right )}^{7}}}{168 \, b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(b*x+a)^2*sin(2*b*x+2*a)^8,x, algorithm="giac")

[Out]

1/168*(105*b*x + 105*a + (105*tan(b*x + a)^13 + 700*tan(b*x + a)^11 + 1981*tan(b*x + a)^9 + 3072*tan(b*x + a)^
7 - 1981*tan(b*x + a)^5 - 700*tan(b*x + a)^3 - 105*tan(b*x + a))/(tan(b*x + a)^2 + 1)^7)/b

________________________________________________________________________________________

Mupad [B]
time = 2.27, size = 149, normalized size = 0.96 \begin {gather*} \frac {5\,x}{8}+\frac {\frac {5\,{\mathrm {tan}\left (a+b\,x\right )}^{13}}{8}+\frac {25\,{\mathrm {tan}\left (a+b\,x\right )}^{11}}{6}+\frac {283\,{\mathrm {tan}\left (a+b\,x\right )}^9}{24}+\frac {128\,{\mathrm {tan}\left (a+b\,x\right )}^7}{7}-\frac {283\,{\mathrm {tan}\left (a+b\,x\right )}^5}{24}-\frac {25\,{\mathrm {tan}\left (a+b\,x\right )}^3}{6}-\frac {5\,\mathrm {tan}\left (a+b\,x\right )}{8}}{b\,\left ({\mathrm {tan}\left (a+b\,x\right )}^{14}+7\,{\mathrm {tan}\left (a+b\,x\right )}^{12}+21\,{\mathrm {tan}\left (a+b\,x\right )}^{10}+35\,{\mathrm {tan}\left (a+b\,x\right )}^8+35\,{\mathrm {tan}\left (a+b\,x\right )}^6+21\,{\mathrm {tan}\left (a+b\,x\right )}^4+7\,{\mathrm {tan}\left (a+b\,x\right )}^2+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(2*a + 2*b*x)^8/sin(a + b*x)^2,x)

[Out]

(5*x)/8 + ((128*tan(a + b*x)^7)/7 - (25*tan(a + b*x)^3)/6 - (283*tan(a + b*x)^5)/24 - (5*tan(a + b*x))/8 + (28
3*tan(a + b*x)^9)/24 + (25*tan(a + b*x)^11)/6 + (5*tan(a + b*x)^13)/8)/(b*(7*tan(a + b*x)^2 + 21*tan(a + b*x)^
4 + 35*tan(a + b*x)^6 + 35*tan(a + b*x)^8 + 21*tan(a + b*x)^10 + 7*tan(a + b*x)^12 + tan(a + b*x)^14 + 1))

________________________________________________________________________________________